package com.twentyfour.service;

import com.twentyfour.dao.RefereeMapper;
import com.twentyfour.pojo.GameInformation;
import com.twentyfour.pojo.Referee;
import com.twentyfour.pojo.RefereeScore;

import java.util.List;

public class RefereeServiceImpl implements RefereeService{

    public RefereeMapper refereeMapper;

    public void setRefereeMapper(RefereeMapper refereeMapper) {
        this.refereeMapper = refereeMapper;
    }

    @Override
    public List<RefereeScore> queryAllItemsByRefereeId(Integer refereeId) {
        return refereeMapper.queryAllItemsByRefereeId(refereeId);
    }

    @Override
    public int updateRefereeScore(RefereeScore refereeScore) {
        return refereeMapper.updateRefereeScore(refereeScore);
    }

    @Override
    public List<RefereeScore> queryUncheckRefereeScoreByRefereeId(Integer refereeId) {
        return refereeMapper.queryUncheckRefereeScoreByRefereeId(refereeId);
    }



    /*@Override
    public List<GameInformation> queryAllGameByRefereeId(Integer refereeId) {
        return refereeMapper.queryAllGameByRefereeId(refereeId);
    }*/
}
